home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / ada / gwuada_8.zip / MON_GLOB.C < prev    next >
C/C++ Source or Header  |  1993-12-29  |  3KB  |  66 lines

  1.  
  2.  
  3. /*
  4.     GWMON Parallel Ada Monitor for 386/486 PCs   
  5.     Copyright (C) 1993, Charles W. Kann  & Michael Bliss Feldman
  6.                         ckann@seas.gwu.edu mfeldman@seas.gwu.edu
  7.  
  8.     This program is free software; you can redistribute it and/or modify
  9.     it under the terms of the GNU General Public License as published by
  10.     the Free Software Foundation; either version 2 of the License.
  11.  
  12.     This program is distributed in the hope that it will be useful,
  13.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15.     GNU General Public License for more details.
  16.  
  17.     You should have received a copy of the GNU General Public License
  18.     along with this program; if not, write to the Free Software
  19.     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21. */
  22.  
  23. #include "ed.h"
  24.  
  25. int step_rate = 4;            /* The loop counter for busy waiting */
  26. int delay_scaling_factor = 5000;
  27. int delay_array[MAX_DELAY] = { 0, 1, 2, 4, 7, 12, 24, 48, 90, 180 };
  28. int task_monitor = 0;        /* Flag set to 0 if this this a sequential */
  29. int exception_monitor = 1;    /* Flag set if exceptions should be reported */
  30. int monitor_exec_time = 1;    /* Flag set if execution time should be */
  31.                 /* on the last line on the screen */
  32. int task_step = 0;        /* Flag set if task step monitoring is on */
  33. int step_monitor = 1;        /* Flag set if line step monitoring is on */
  34. int  Time_To_Read_Key = 10;    /* The number of "ticks" between looking for */
  35.                 /* a key press */
  36. int Exec_Report_Time = 2000;    /* Amount of time till the execution time is */
  37.                 /* Reported on the execution %  */
  38. int monitor_type = 1;        /* Monitor type, 0 is no monitor, 1 is */
  39.                 /* monitoring lines, 2 is exec % */
  40. int monitor_window_type = 0;    /* Type of monitor windows with monitor_type=1*/
  41.                 /*     0 = 4 windows, 1 = 2 windows horizonal */
  42.                 /*     2 = 2 windows veritcal, 3 = 1 window   */
  43. int type_of_delay = 0;        /* Type of delay with 0 = real time (normal)  */
  44.                 /*    and 1 - relative to clock ticks         */
  45. int seconds_per_tick = 1000;    /* Number of seconds per clock tick for type */
  46.                 /* of delay = 2 */
  47. int Block_Level = 0;        /* The number of program blocks which are    */
  48.                 /* active                                    */
  49. int WIN_SIZE = 5;        /* The number of lines in the window for the */
  50.                 /* line moitoring.  Ie. 5 for window type 0  */
  51.                 /* and 1, 11 for types 2 and 3               */
  52. int LINE_SIZE = 28;        /* The length of each line in the monitor    */
  53.                 /* If the monitor type is 0 or 1, it is 28   */
  54.                 /* characters, otherwise it is 68            */
  55. int Large_Monitor = 0;        /* Flag which determines whether we are using*/
  56.                 /* the large monitor screen (ie program      */
  57.                 /* output 2 lines ) or small monitor (program*/
  58.                 /* output 10 lines )                         */
  59. int Windows_Used = 1;        /* The number of Monitor windows used by the */
  60.                 /* monitor                                   */
  61. long Run_Total_Time = 0;     /* Total run time (lines) for this run */
  62. TASK_REC  CWK_TASKS[MAX_TSKS+1];
  63. TASK_REC  CWK_BLKS[MAX_BLKS+1];
  64. MON_REC   CWK_MONS[MAX_BLKS+1];
  65.  
  66.